#include "Kernel.h"
#include "Scheduler/Team.h"
#include "Scheduler/Process.h"
#include "Utils/String.h"
#include "Utils/TList.h"


Team::Team( const char * name, Session * session )
{
	IF_PARANOID( this->signature = TEAM_SIGNATURE );

	this->session = session;
	this->name = StringCopy( name );
	this->processes = new TList<Process>();
}


Team::~Team()
{
	PARANOID_ASSERT( this->signature == TEAM_SIGNATURE );
	IF_PARANOID( this->signature = NULL );

	session = NULL;
	delete name;
	delete processes;
}
